﻿<Window x:Class="frmAdminSecurity"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="System Security" Height="700" Width="1006" Background="Gray" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  >
    <Grid>
        <GroupBox Header="System Security" Margin="8,5,10,10" Name="GroupBox1">
            <Grid>
                <telerik:RadGridView Margin="6,40,0,0" Name="List_Consultants" AllowDrop="True" AutoGenerateColumns="True"  CanUserReorderColumns="True" CanUserSortColumns="True" CanUserResizeColumns="True" Height="516.723" VerticalAlignment="Top" HorizontalAlignment="Left" Width="202">
                </telerik:RadGridView>
                <Label Height="22" HorizontalAlignment="Left" Margin="8,17,0,0" Name="Label3" VerticalAlignment="Top" Width="67">Consultant</Label>
                <Label Height="24" Margin="486,33,0,0" Name="Label1" VerticalAlignment="Top" HorizontalAlignment="Left" Width="91">Security Groups</Label>
                <ComboBox  Background="White" BorderBrush="Black" BorderThickness="1" Height="20" HorizontalAlignment="Left" Margin="487,55,0,0" Name="Combo_AddUserToGroup" VerticalAlignment="Top" Width="117" />
                <Label Height="22" HorizontalAlignment="Left" Margin="223,17,0,0" Name="Label2" VerticalAlignment="Top" Width="67">Member Of</Label>
                <telerik:RadGridView Height="169" Margin="225,40,0,0" Name="List_GroupMembership" VerticalAlignment="Top" HorizontalAlignment="Left" Width="256">
                </telerik:RadGridView>
                <!--<ListView Height="169" Margin="225,40,473,0" Name="lvwMemberOf" VerticalAlignment="Top">
                    <ListView.View >
                        <GridView >
                            <GridView.Columns >
                                <GridViewColumn Header="Columnheader" Width="140"></GridViewColumn>
                                <GridViewColumn Header="Columnheader" Width="140"></GridViewColumn>
                            </GridView.Columns>
                        </GridView>
                    </ListView.View>
                </ListView>-->
                <Label Height="24" HorizontalAlignment="Left" Margin="222,211,0,0" Name="Label4" VerticalAlignment="Top" Width="103">Group Permissions</Label>
                <!--<telerik:RadGridView Margin="225,234,353,237" Name="lvwGroupPermissions">
                </telerik:RadGridView>-->
                <ListView Margin="225,234,0,0" Name="List_UserGroupPermissions" HorizontalAlignment="Left" Width="376" Height="155.723" VerticalAlignment="Top">
                    <ListView.View >
                        <GridView >
                            <GridView.Columns >
                                <GridViewColumn Header="Permission" Width="140" DisplayMemberBinding="{Binding Path=Permission}" ></GridViewColumn>
                                <GridViewColumn Header="Expiry" Width="140" DisplayMemberBinding="{Binding Path=Expiry}" ></GridViewColumn>
                            </GridView.Columns>
                        </GridView>
                    </ListView.View>
                </ListView>
                <Label Height="22" HorizontalAlignment="Left" Margin="223,392.723,0,0" Name="Label5" VerticalAlignment="Top" Width="114">Personal Permissions</Label>
                <!--<telerik:RadGridView Height="141" Margin="225,0,353,70" Name="lvwPersonalPermissions" VerticalAlignment="Bottom">
                </telerik:RadGridView>-->
                <ListView Height="141" Margin="225,415.723,0,0" Name="List_ConsultantPermissions" VerticalAlignment="Top" HorizontalAlignment="Left" Width="376">
                    <ListView.View >
                        <GridView >
                            <GridView.Columns >
                                <GridViewColumn Header="Permission" Width="140" DisplayMemberBinding="{Binding Path=Permission}" ></GridViewColumn>
                                <GridViewColumn Header="Expiry" Width="140" DisplayMemberBinding="{Binding Path=Expiry}" ></GridViewColumn>
                            </GridView.Columns>
                        </GridView>
                    </ListView.View>
                </ListView>
                <Button Height="23" HorizontalAlignment="Left" Margin="488,102,0,0" Name="Btn_AddUserToGroup" VerticalAlignment="Top" Width="61">Add</Button>
                <Button Height="23" HorizontalAlignment="Left" Margin="488,135,0,0" Name="Btn_RemoveUserFromGroup" VerticalAlignment="Top" Width="61">Remove</Button>
                <Label Height="24" HorizontalAlignment="Left" Margin="613,55,0,0" Name="Label8" VerticalAlignment="Top" Width="72">User Groups</Label>
                <telerik:RadGridView HorizontalAlignment="Left" Margin="613,78,0,0" Name="List_Groups" Width="162" Height="261.723" VerticalAlignment="Top">
                </telerik:RadGridView>
                <!--<ListBox HorizontalAlignment="Right" Margin="0,78,179,287" Name="lstUserGroups" Width="162" />-->
                <Label Height="24" HorizontalAlignment="Left" Margin="786,54,0,0" Name="Label9" VerticalAlignment="Top" Width="90">Group Members</Label>
                <telerik:RadGridView HorizontalAlignment="Left" Margin="786,77,0,0" Name="List_GroupMembers" Width="162" Height="194" VerticalAlignment="Top">
                </telerik:RadGridView>
                <!--<ListBox HorizontalAlignment="Right" Margin="0,77,6,0" Name="lstGroupMembers" Width="162" Height="194" VerticalAlignment="Top" />-->
                <Button Height="23" HorizontalAlignment="Left" Margin="613,345.723,0,0" Name="Btn_NewUserGroup" VerticalAlignment="Top" Width="64">New Group</Button>
                <!--<telerik:RadGridView Height="154" HorizontalAlignment="Right" Margin="0,0,6,70" Name="lvwGroupPermissAll" VerticalAlignment="Bottom" Width="335">
                </telerik:RadGridView>-->
                <ListView Height="154" HorizontalAlignment="Left" Margin="613,402.723,0,0" Name="List_GroupPermissions" VerticalAlignment="Top" Width="335" >
                    <ListView.View >
                        <GridView >
                            <GridView.Columns >
                                <GridViewColumn Header="Group Permission" Width="140" DisplayMemberBinding="{Binding Path=SecAccess_Name}"></GridViewColumn>
                                <GridViewColumn Header="Expiry" Width="140" DisplayMemberBinding="{Binding Path=Expiry}"></GridViewColumn>
                            </GridView.Columns>
                        </GridView>
                    </ListView.View>
                </ListView>
                <Button HorizontalAlignment="Left" Margin="886,324,0,0" Name="Btn_AddConToGroup" Width="63" Height="22.723" VerticalAlignment="Top">Add</Button>
                <Button Height="23" HorizontalAlignment="Left" Margin="886,349.723,0,0" Name="Btn_RemoveConFromGroup" VerticalAlignment="Top" Width="63">Remove</Button>
                <Label Height="21.8" HorizontalAlignment="Left" Margin="615,556.923,0,0" Name="Label10" VerticalAlignment="Top" Width="84">Security Access</Label>
                <ComboBox Background="White" BorderBrush="Black" BorderThickness="1" Height="19.8" Margin="619,579.923,0,0" Name="Combo_AddGroupPermission" VerticalAlignment="Top" HorizontalAlignment="Left" Width="130" />
                <Label Height="21.8" Margin="773,555.923,0,0" Name="Label11" VerticalAlignment="Top" HorizontalAlignment="Left" Width="67">Expiry Date</Label>
                <my:DatePicker Background="White" BorderBrush="Black" BorderThickness="1" Height="19.8" HorizontalAlignment="Left" Margin="777,579.923,0,0" Name="Txt_GroupExp" VerticalAlignment="Top" Width="109" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" />
                <Button Height="23" Margin="619,602.723,0,0" Name="Btn_AddGroupPermission" VerticalAlignment="Top" HorizontalAlignment="Left" Width="63">Add</Button>
                <Label Height="21.8" HorizontalAlignment="Left" Margin="228,556.923,0,0" Name="Label6" VerticalAlignment="Top" Width="84">Security Access</Label>
                <ComboBox Background="White" BorderBrush="Black" BorderThickness="1" Height="19.8" HorizontalAlignment="Left" Margin="232,579.923,0,0" Name="Combo_AddUserPermission" VerticalAlignment="Top" Width="130" />
                <Label HorizontalAlignment="Left" Margin="386,555.923,0,0" Name="Label7" Width="67" Height="21.8" VerticalAlignment="Top">Expiry Date</Label>
                <!--<TextBox Background="White" BorderBrush="Black" BorderThickness="1" Height="19.8" Margin="390,0,455,27" Name="TextBox2" VerticalAlignment="Bottom" />-->
                <my:DatePicker Background="White" BorderBrush="Black" BorderThickness="1" Height="19.8" Margin="390,579.923,0,0" Name="Txt_ExpiryDate" VerticalAlignment="Top"  xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" HorizontalAlignment="Left" Width="109" />
                <Button Height="23" HorizontalAlignment="Left" Margin="232,602.723,0,0" Name="Btn_AddUserPermission" VerticalAlignment="Top" Width="63">Add</Button>
                <Button Height="23" HorizontalAlignment="Left" Margin="372,391.723,0,0" Name="Btn_Remove" VerticalAlignment="Top" Width="61">Remove</Button>
                <Label Height="24" Margin="615,372.723,0,0" Name="Label12" VerticalAlignment="Top" HorizontalAlignment="Left" Width="114">Group Permissions</Label>
                <Button Height="23" HorizontalAlignment="Left" Margin="764,373.723,0,0" Name="Btn_RemoveGroupPermission" VerticalAlignment="Top" Width="61">Remove</Button>
                <Label Height="21" Margin="786,277,0,0" Name="Label13" VerticalAlignment="Top" HorizontalAlignment="Left" Width="91">Consultant</Label>
                <ComboBox Background="White" BorderBrush="Black" BorderThickness="1" Margin="787,298,0,0" Name="Combo_GroupAddUser" HorizontalAlignment="Left" Width="117" Height="19.723" VerticalAlignment="Top" />
                <Button Height="23" Margin="0,6,5,0" Name="btnClose" VerticalAlignment="Top" HorizontalAlignment="Right" Width="61">Close</Button>
            </Grid>
        </GroupBox>
    </Grid>
</Window>
